<template>
        <router-link tag="li" class="item" :to="`/mv/${item.id}`">
            <div>
                <img :src="item.picUrl"/>
                <span class="iconfont iconvideo"><i>{{item.playCount}}</i></span>
            </div>
            <span class="iconfont iconplay"></span>
            <p>{{item.name}}</p>
            <p>{{item.artists[0].name}}</p>
        </router-link>
</template>

<script>
export default {
    data(){
        return{

        }
    },
    name:"ListItem",
    props:['item']
}
</script>

<style lang="less" scoped>
li.item{
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    position: relative;
    div{
        position: relative;
        img{
            vertical-align: middle;
            border: 0;
        }
        span{
            position: absolute;
            right: 5px;
            top: 2px;
            z-index: 3;
            padding-left: 13px;
            color: #fff;
            font-size: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            i{
                font-style: normal;
                font-size: 12px;
            }
        }
    }
    &>p{
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding: 6px 2px 0 6px;
        min-height: 30px;
        line-height: 1.2;
        &:nth-of-type(1){
            font-size: 14px;
        }
        &:nth-of-type(2){
            color: #6e6a6a;
            font-size: 13px;
        }
    }
}
.iconplay{
    position: absolute;
    bottom: 0px;
    right: 10px;
    font-size: 30px;
    z-index: 2;
    color: rgb(0, 101, 253);
}
</style>